package com.goods.business.service;

import com.goods.common.model.business.ProductCategory;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import com.goods.common.vo.business.ProductCategoryVO;
import com.goods.common.vo.system.PageVO;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 *
 * @Date: 2023/3/6 - 10:31
 * @Author: Hyoung
 * @Description:
 */
public interface IProductCategoryService {
    /**
     * 查询所有的物资类别 分页数据
     *
     * @return
     */
    PageVO<ProductCategoryTreeNodeVO> findAll(Integer pageNum, Integer pageSize);

    /**
     * 获取二级父分类id
     *
     * @return
     */
    List<ProductCategoryTreeNodeVO> getParentCategoryTree();

    /**
     * 添加分类
     *
     * @param productCategoryVO
     */
    void addProductCategory(ProductCategoryVO productCategoryVO);

    /**
     * 根据id删除
     *
     * @param id
     */
    void delete(Integer id);

    /**
     * 根据id查询
     *
     * @return
     */
    ProductCategoryVO findProductCategoryById(Integer id);

    void updateProductCategoryById(Integer id, ProductCategoryVO productCategoryVO);
}
